package com.javaee.mapper.admin;

import com.javaee.entity.Doctor;
import com.javaee.entity.Plan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PlanMapper {
    void insert(Plan plan);
    void deleteById(Integer id);
    void update(Plan plan);
    Plan findById(Integer id);
    List<Doctor> finddoctorbyName();
    List<Plan> findAll();
    //显示所有排班信息
    List<Plan> findAllWithDoctor(String keyword, @Param("startIndex") int pageNum, @Param("perPageSize")int pageSize);
    //通过科室名称查找排班信息
    List<Plan> findByDepartmentName(String departmentName);

    int selectCount();
}
